import ReactDOM from 'react-dom/client'

const root = ReactDOM.createRoot(document.querySelector("#root"));

const App = (props) => {
  console.log(props, 222);
  return (
    <div>
      <h2>这是app</h2>
      <h3>{props.title}</h3>
      <h4>{props.subTitle}</h4>
      {props.num}
    </div>
  )
}

root.render(<App title="你好函数式组件" subTitle="副标题" num={10}/>);